package com.dragon.modules.yuegou.entity.member;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.member.BenefitBenefitType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商圈权益表实体类<br>
 * 对应的表为：mem_benefit<br>
 * 
 * @author pbuilder generated
 * @date 2021-12-15 17:04:53
 * @company sgy
 * @version 2.0
 */
@TableName("mem_benefit")
@ApiModel(description = "商圈权益表")
public class BenefitEntity {

    /** id */
	@ApiModelProperty("id")
	protected String id;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** [枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION */
	@ApiModelProperty("[枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION")
	protected BenefitBenefitType benefitType;

	/**
	 * 构造一个空商圈权益表实体对象
	 */
	public BenefitEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商圈权益表实体对象
	 * 
	 * @param other 其它对象
	 */
	public BenefitEntity(BenefitEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.benefitType = other.benefitType;
	}


	/**
	 * 获取id
	 * 
	 * @return id id
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置id
	 * 
	 * @param id id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取[枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 * 
	 * @return benefitType [枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 */
	public BenefitBenefitType getBenefitType() {
		return benefitType;
	}
  	
	/**
	 * 设置[枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 * 
	 * @param benefitType [枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION
	 */
	public void setBenefitType(BenefitBenefitType benefitType) {
		this.benefitType = benefitType;
	}

    public String toString() {
		return new StringBuilder().append("BenefitEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",benefitType=").append(benefitType).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public BenefitEntity copy() {
		return new BenefitEntity(this);
	}

    /** id */
	public static final String COL_ID = "id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** [枚举]权益类型：0-商品折扣-DISCOUNT、1-多倍积分-MAGNIFICATION */
	public static final String COL_BENEFIT_TYPE = "benefit_type";
}
